This page last changed on Nov 12, 2008 by scytacki.

keywords: jnlp fix mac osx webstart java

Here is a bug documenting the problem:
http://www.telscenter.org/jira/browse/PAS-171

CC created an application for fixing this problem. It will ask for administrator priviledges when it is run:
FixJavaWebStart.dmg

This application only works for Java 1.5.0_06 and 1.5.0_07, so, if you have a different version of Java 1.5, or if the application above doesn't work, you can try pasting the following into the OSX Terminal application. The Terminal Application is located in the Applications/Utilities folder.

MacOS 10.4

For java 1.5.0_06 and 1.5.0_07 on OS X 10.4

cd /tmp; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip; unzip jardiff_strings_file.zip; sudo zip -u "/Applications/Utilities/Java/J2SE 5.0/Java Cache Viewer.app/Contents/MacOS/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip; cd -

For Java 1.5.0_13 and 1.5.0_16 on OS X 10.4

cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; sudo zip -u "/Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -

MacOS 10.5

For Java 1.5.0_13 and 1.5.0_16 on OS X 10.5

cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; sudo zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -

Background

A copy of the string.properties file that is missing from javaws.jar for Java 1.5 on MacOSX is attached to this page: com/sun/javaws/jardiff/resources/strings.properties

The following script pops up a dialog asking the user for admin privileges. The webstart fix it runs is for 10.4 with java 1.5.0_13

osascript -e "Do shell script \"cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; zip -u '/Applications/Utilities/Java/Java Web Start.app/Contents/MacOS/lib/javaws.jar' com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -\" with administrator privileges"

The problem can be tested using these instructions: http://www.telscenter.org/confluence/display/PAS/JNLP+Test

The Fix Java Webstart application is an XCode project checked into CC's cvs repository under Projects/FixJavaWebstart.

I reported this bug to Apple. They gave me an bug id: 4696251. I don't believe this bug is public. The gist of apples response is that they cannot duplicate this bug in the current java seed.

Java 2 SE 6.0 Release 1 Developer Preview 4
<http://connect.apple.com>

A new MacOSX Java bug that applies to Java 1.5.0_16 on MacOS X 10.4 (not 10.5)

This one only applies to java 1.5.0_16. Some how a bug was introduced that stops webstart from running extensions:

cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/deploy-1.5.0_16-fix.jar > deploy-1.5.0_16-fix.jar ; unzip deploy-1.5.0_16-fix.jar ; sudo zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/deploy.jar" com/sun/deploy/config/MacOSXConfig.class ; rm com/sun/deploy/config/MacOSXConfig.class deploy-1.5.0_16-fix.jar ; cd -


FixJavaWebStart.dmg (application/octet-stream)
FixJavaWebStart.dmg (application/x-diskcopy)
FixJavaWebStart.dmg (application/x-diskcopy)
jardiff_strings_file.zip (application/zip)
deploy-1.5.0_16-fix.jar (application/octet-stream)

I tried to run the command-line version on Matt Fishbach's MacOS10.5 (running java 1.5.0_13) and it gave me permission error. user gloriasass has admin privileges.

tolman-110:~ gloriasass$ cd /tmp ; curl http://confluence.concord.org/download/attachments/10877/jardiff_strings_file.zip > jardiff_strings_file.zip ; unzip jardiff_strings_file.zip ; zip -u "/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar" com/sun/javaws/jardiff/resources/strings.properties ; rm com/sun/javaws/jardiff/resources/strings.properties jardiff_strings_file.zip ; cd -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1209 100 1209 0 0 5951 0 -::- -::- -::- 0
Archive: jardiff_strings_file.zip
inflating: com/sun/javaws/jardiff/resources/strings.properties
zip I/O error: Permission denied

zip error: Could not create output file (/System/Library/Frameworks/JavaVM.framework/Home/lib/javaws.jar)
/Users/gloriasass
tolman-110:~ gloriasass$ ls -lah /tmp/com/sun/javaws/jardiff/resources/total 0drwxrwxrwx 2 gloriasass wheel 68B Jan 22 17:45 .drwxr-xr-x 3 gloriasass wheel 102B Dec 5 13:04 ..

Posted by hiroki at Jan 22, 2008 20:48

Try changing the end of the last script from:

with administrator privileges

to

with root privileges
Posted by stepheneb at Jan 22, 2008 21:54

From Hiroki's, message above it seems he wasn't use the script that asks for authentication.
Hiroki, you need to sudo first I'll update the scripts above to have sudo in them.

Posted by scytacki at Jan 23, 2008 10:09
Document generated by Confluence on Jan 27, 2014 16:56